/*
 * Copyright (c) 2017. All  rights reserved.
 * 项目名：microservice-base
 * 文件名：SearchVo.java
 * Date  ：17-10-11 下午4:44
 * Author：abin
 *
 */

package com.stadium.vo.searchVo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="通用查询类", description="通用查询类")
public class SearchVo implements Serializable {

	private static final long serialVersionUID = -5679360340901796905L;
	@ApiModelProperty(value = "开始显示",notes = "开始显示")
	private Long start;
	@ApiModelProperty(value = "一页显示多少",notes = "一页显示多少")
	private Long limit;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "开始时间",notes = "开始时间")
	private Date startDate;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "结束时间",notes = "结束时间")
	private Date endDate;
	@ApiModelProperty(value = "排序列--列名",notes = "排序列--列名")
	private String columnName;
	@ApiModelProperty(value = "排序规则--升序或降序",notes = "排序规则--升序或降序")
	private String dir;
	@ApiModelProperty(value = "搜索框内容",notes = "搜索框内容")
	private String searchValue;
}
